import { Message } from '@hi-ui/hiui'

// 简化的 Message API
const MessageAPI = {
  success: (content, duration = 3000) => {
    return Message.open({
      title: content,
      type: 'success',
      duration
    })
  },
  
  error: (content, duration = 3000) => {
    return Message.open({
      title: content,
      type: 'error',
      duration
    })
  },
  
  warning: (content, duration = 3000) => {
    return Message.open({
      title: content,
      type: 'warning',
      duration
    })
  },
  
  info: (content, duration = 3000) => {
    return Message.open({
      title: content,
      type: 'info',
      duration
    })
  }
}

export default MessageAPI
